package battleModel;

import java.awt.Image;
import java.awt.Point;
import java.awt.Shape;

/**
 *  OuterWall has 1 health and is not damageable, its img is null because it is a part of the map
 *  Obstacle Attributes:
 *     health=1, damageable=false, location=null, image=null
 *
 *  BattleModel or Map will pass "North", "South", "East", "West" and the x/y scale factor at start of battle
 */
public class OuterWall extends Obstacle{
	 
	private Perimeter perimeter;
	
	public OuterWall(String wallName, double xScale, double yScale){
		super(1, false, null, null);
		if(wallName.equals("North"))
			perimeter=new Perimeter(0,0,1300*xScale,35*yScale);
		else if(wallName.equals("South"))
			perimeter=new Perimeter(0,875*yScale, 1300*xScale, 35*yScale);
		else if(wallName.equals("East"))
			perimeter=new Perimeter(1268*xScale,0,35*xScale,910*yScale);
		else if(wallName.equals("West"))
			perimeter=new Perimeter(0,0,32*xScale,910*yScale);
	}

	@Override
	public Shape getCollisionShape() {
		return perimeter.getRect();
	}
}
